//
//  NewDataBase.h
//  New
//
//  Created by dlios on 15-7-24.
//  Copyright (c) 2015年 yangTao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "NewModel.h"
#import "HeadleModel.h"

@interface NewDataBase : NSObject
+(instancetype)sharDataBase;

-(void)OpenDB;
-(void)creatTable;
-(void)insertNewModel:(NewModel *)newMod;
-(NSMutableArray *)selectAllNews;
-(void)dropTable;




-(void)creatTopTable;
-(void)insertNewDetailModel:(HeadleModel *)headelMod;
-(NSMutableArray *)selectAllNewsDetail;
-(void)dropTopTable;

@end
